package com.potenza.training.reply.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.potenza.training.reply.entity.SubjectDTO;
import com.potenza.training.reply.entity.SubjectEntity;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;

import java.io.FileInputStream;
import java.util.Map;

/**
 * 机构创建题目表
 *
 * @author lihonggang
 * @email lihonggang@gmail.com
 * @date 2021-07-22 15:57:42
 */
public interface SubjectService extends IService<SubjectEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Page<SubjectEntity> findAll(Map map,Integer pageNum,Integer pageSize);

    SubjectEntity findById(Long id);

    void immediately(Integer id);

    R saveIkAndSubject(SubjectDTO subjectDTO);

    R saveSubject(FileInputStream fileInputStream)throws Exception;
}

